package com.bkgy.modular.actualTime.controller;

import com.bkgy.modular.actualTime.service.ActualService642;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/actual642")
public class ActualController642 {

    @Resource
    private ActualService642 actualService642;

    @PostMapping("/getActualData")
    public ResultData getActualData(){
       try {
           ResultData data = actualService642.readData();
           return data;
       }
       catch (Exception e){
           e.printStackTrace();
           return ResultData.ResultDataFaultSelf("获取数据失败",null);
       }
    }
}
